package com.hu.zhcc.shiro.service.dingming;

import com.hu.zhcc.shiro.dao.dingming.TOrderMapper;
import com.hu.zhcc.shiro.entity.dingming.TOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class TOrderServiceImpl implements TOrderService{
    @Autowired
    private TOrderMapper tOrderMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tOrderMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertReturnKey(TOrder record) {
        return tOrderMapper.insertReturnKey(record);
    }

    @Override
    public int insertSelective(TOrder record) {
        return tOrderMapper.insertSelective(record);
    }

    @Override
    public TOrder selectByPrimaryKey(Integer id) {
        return tOrderMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TOrder record) {
        return tOrderMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TOrder record) {
        return tOrderMapper.updateByPrimaryKey(record);
    }

    @Override
    public int changeStatus(Map<String,Integer> map) {
        return tOrderMapper.changeStatus(map);
    }
}
